<?php

namespace App\Business\File;


use App\Business\ReturnResult;
use App\Models\View_Biz_YBJ_JSSB_File;

class GetJSSBFile extends FileBase
{

    public $ID;

    protected function Handle()
    {
        if(!$this->ID) return ReturnResult::Error("参数错误");




        $JSSB= View_Biz_YBJ_JSSB_File::find($this->ID);

        if(!$JSSB) return  ReturnResult::Error("参数错误");






        return ReturnResult::Success(["URLPath"=>$JSSB->fileUrlPath
        ,"FileName"=>"基数申报.".$JSSB->suffix]);

    }

    public function GetBusinessName()
    {
        return "获得基数申报文件";
    }


}